Remove unused 'nr_recs' field from trace-buffer header
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Thu, 24 Nov 2005 14:08:27 +0000 (15:08 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Thu, 24 Nov 2005 14:08:27 +0000 (15:08 +0100)
structure. This also happens to ensure correct t_rec
alignment on ia64. A better layout for trace buffers
will be coming soon.

Signed-off-by: Keir Fraser <keir@xensource.com>
xen/common/trace.c
xen/include/public/trace.h

index da359b5908d481af92728423d0df4436dfe4b8aa..d8b2fad1edf31b275455d9b16a362057aeff6506 100644 (file)
@@ -89,7 +89,6 @@ static int alloc_trace_bufs(void)
     {
         buf = t_bufs[i] = (struct t_buf *)&rawbuf[i*opt_tbuf_size*PAGE_SIZE];
         buf->cons = buf->prod = 0;
-        buf->nr_recs = nr_recs;
         t_recs[i] = (struct t_rec *)(buf + 1);
     }
 
index cdcf447c1081511dd89ad94cb74ad141494b4019..b9f139444ea73d629b36b2e3fc38f49ff30463c8 100644 (file)
@@ -74,7 +74,6 @@ struct t_rec {
 struct t_buf {
     unsigned int  cons;      /* Next item to be consumed by control tools. */
     unsigned int  prod;      /* Next item to be produced by Xen.           */
-    unsigned int  nr_recs;   /* Number of records in this trace buffer.    */
     /* 'nr_recs' records follow immediately after the meta-data header.    */
 };